home *** CD-ROM | disk | FTP | other *** search
- Path: news.protocom.com!usenet
- From: "Michael J. Karas" <mkaras@pclink.com>
- Newsgroups: comp.lang.c,comp.lang.c++,comp.os.ms-windows.programmer.misc,comp.os.msdos.programmer,comp.programming,comp.windows.ms.programmer
- Subject: Date Arithmetic
- Date: 16 Feb 1996 06:53:13 GMT
- Organization: Carousel Design Solutions
- Message-ID: <4g19kp$640@tracy.protocom.com>
- NNTP-Posting-Host: pm1-19.pclink.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2 (Windows; U; 16bit)
-
- I am working on an algorithm for a laser marking machine that writes
- expiration delays on to food product boxes. The algorithm needs to
- be able to add NNN days to todays date in the fastest manner possible
- without using any floating point arithmetic. I could use help from anyone
- that has C code for doing this. It would be nice if the solution took the
- leap year problem in to account including the special case of the year
- 2000. Thanks in advance to anyone who could share their knowledge on this
- subject.
- -----
- Michael Karas | EMail: mkaras@pclink.com
- Carousel Design Solutions | America OnLine: MJKaras
- 6021 Logan Avenue South | Voice: (612) 861-1284
- Minneapolis MN 55419 | Fax: (612) 861-1386
- -----
-
-
-